<style type="text/css">
  #gadget_header {
    background-color: #d19a62;
    height: 100px;
    width:690px;
     background-image:url(img/hotelWrapper.png);
     background-repeat:no-repeat;
     background-position:top left;
}
</style>

<?php
//CSS - Markitup
echo $this->Html->css(array('nivo/themes/default/default', 'nivo/nivo-slider'), false);
//Javascript
//Nivo
echo $this->Html->script(array('plugins/jquery.nivo.slider'), false);
$this->Html->scriptStart(array('inline' => false));
echo '
      $(function(){
        $("#slider").nivoSlider({pauseTime: 5000, animSpeed: 800});
        $(".nivo-controlNav").css("left",parseInt($("#slider").width()-$(".nivo-controlNav").width())/2);

        var interval;
        interval = self.setInterval(function(){
        if ($("#hih_gadget_wrap iframe").size()!=0) {
          var w = $("#gadget_header").css("width");
          w = parseInt(w)*1.032;
          $("#hih_gadget_wrap").css("width",w);
          $("#hih_gadget_wrap").show("slow");
          window.clearInterval(interval);
        }
        },500);
      });
       ';
$this->Html->scriptEnd();
?>

<style type="text/css">
  .nivoSlider {
    width : <?php echo Configure::read("App.homepageImageWidth"); ?>px;
    height : <?php echo Configure::read("App.homepageImageHeight"); ?>px;
    margin: 0 auto;
  }
</style>
<div class="row-fluid" id="homeSlideshow">
 
<?php if (!empty($photos)) {?>
  <div class="span12">
    <div class="slider-wrapper theme-default">
      <div class="ribbon"></div>
      <div id="slider" class="nivoSlider">
      <?php
      foreach ($photos as $photo) {
        $rec = $photo['HomepagePhoto'];
        echo $this->Html->image($rec['image_path'], array('alt' => $rec['caption'], 'title' => $rec['caption']));
      }
      ?>
      </div>
    </div>
  </div>
<?php
  } else {
    echo 'No images are currently available.';
  }
?>

</div>
<?php if (!empty($photos)) {
  $index = rand(0, sizeof($photos)-1);
  ?>

<div class="row-fluid" id="mobileHomePageImage">
  <div class="span8 offset2">
    <?php
      $rec = $photos[$index]['HomepagePhoto'];
      echo $this->Html->image($rec['image_path'], array('alt' => $rec['caption'], 'title' => $rec['caption']));
    ?>
  </div>
</div>
<?php } ?>
  <div id="siteSummaryContent" class="row-fluid">

    <div class="summarySection span4 offset2" id="summarySection1">
      <h1>Planning a wedding in Trinidad and Tobago?</h1>
      <p>Isle Vow provides wedding resources to assist you in the wedding planning process. We are your ultimate guide for <?php echo $this->Html->link("wedding planning in Trinidad and Tobago", array("controller"=>"services", "action"=>"view"), array( "title"=>"Weddings in Trinidad and Tobago")) ?> providing resources and assistance with services such as booking and viewing wedding venues, selecting caterers, photographers, videographers, wedding favors and much more.</p>
    </div>

    <div class="summarySection span4" id="summarySection2">
      <h1>Your Caribbean destination wedding source</h1>
      <p>Are you planning a <?php echo $this->Html->link("destination wedding in Trinidad and Tobago or the Caribbean","/destination-weddings-trinidad-and-tobago", array("title"=>"Destination weddings in Trinidad and Tobago"));?>? We make it easy! Your one stop shop for <?php echo $this->Html->link("Caribbean wedding planning resources","/caribbean-wedding-planning-resources", array("title"=>"Wedding planning resources in the Caribbean"));?> and <?php echo $this->Html->link("Caribbean wedding information","/caribbean-wedding-information");?> is Isle Vow. <?php echo $this->Html->link("Contact Isle Vow","/contact");?> today to see how we can make your dream wedding come true!</p>
    </div>

  </div>

<div id="travel" class="row-fluid">
  <div id="gadget_wrapper" class="span6 offset2">
    <div id="gadget_header" style=""></div>
  <div id="hih_gadget_wrap" style="padding-bottom: 50px; display:none;"><script type="text/javascript"
src="http://gadgets.hotelinternethelp.com/gadget?gid=162"></script></div>
</div>

</div>

<div id="welcomeToTrinidadAndTobago">
  <a href="<?php echo $this->Html->url("/destination-weddings-trinidad-and-tobago");?>" title="Welcome to Trinidad and Tobago">Welcome to Trinidad and Tobago</a>
</div>